using AutoMapper;
using NBModular.Lib.Mapper.AutoMapper;
using NBModular.Module.Member.Application.UserAddressService.ViewModels;
using NBModular.Module.Member.Domain.UserAddress;

namespace NBModular.Module.Member.Application.UserAddressService
{
    public class MapperConfig : IMapperConfig
    {
        public void Bind(IMapperConfigurationExpression cfg)
        {
            cfg.CreateMap<UserAddressAddModel, UserAddressEntity>();
            cfg.CreateMap<UserAddressEntity, UserAddressUpdateModel>();
            cfg.CreateMap<UserAddressUpdateModel, UserAddressEntity>();
        }
    }
}
